package com.lovecanon.jzjl;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.lovecanon.jzjl.mapper")//将项目中对应的mapper类的路径加进来就可以了
public class JzjlApplication  extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(JzjlApplication.class);
    }


    public static void main(String[] args) {
        SpringApplication.run(JzjlApplication.class, args);
    }
}
